import { ConnectorResult } from '@/types/connector'
import { ResourcesInject, Resources } from '@/types/resources'

const resources: ResourcesInject = ({ query, post }: ConnectorResult) => {
  return {
    user: {
      login: (params: any) => post('/login', params),
      tokenAuth: () => post('/tokenAuth')
    }
  } as Resources
}

export default resources
